import { requestClient as request } from '../request'

// 获取发料列表
export function getSendRecordList(params: any) {
  return request.get('/admin/sendRecord/index', params)
}

// 获取发料详情
export function getSendRecordInfo(params: any) {
  return request.get('/admin/sendRecord/edit', params)
}

// 新增发料
export function doSendRecordAdd(data: any) {
  return request.post('/admin/sendRecord/add', data)
}

// 编辑发料
export function doSendRecordEdit(data: any) {
  return request.post('/admin/sendRecord/edit', data)
}

// 删除发料
export function doSendRecordDelete(data: any) {
  return request.post('/admin/sendRecord/del', data)
}

// 审核发料
export function doSendRecordApproval(data: any) {
  return request.post('/admin/sendRecord/approval', data)
}

// 反审发料
export function doSendRecordAgainst(data: any) {
  return request.post('/admin/sendRecord/against', data)
}
